import request from '@/utils/request'

//导入流程
export function importProcess(data){
    var d= request({
      url: '/console/activiti/importProcess',
      method: 'post',
      data: data
    })
    return d;
  }

// 查询列表
export function queryList(data) {
  return request({
    url: '/console/activiti/list',
    method: 'post',
    data: data
  })
}

//激活或者挂起
export function suspendDefinition(data) {
  console.info(data);
  return request({
    url: '/console/activiti/updateStatus',
    method: 'get',
    params: data
  })
}

//删除流程定义
export function deleteDefinition(data) {
  return request({
    url: '/console/activiti/delDefinition',
    method: 'get',
    params: data
  })
}

//流程图
export function getDefinitionByInstanceId(data) {
  return request({
    url: '/console/activiti/getDefinition/'+data,
    method: 'get'
  })
}